package com.zu.commu.interf;

public class Order
{
  private String orderType;
  private boolean isMulRresult = false;

  public static Order CALL = new Order("205");
  public static Order SETCLOCK = new Order("206");
  public static Order READCLOCK = new Order("207");
  public static Order PUMP = new Order("166");
  public static Order INITVALUE = new Order("250");
  public static Order CHARGE = new Order("180");
  public static Order CHARGETIMES = new Order("190");
  public static Order READCHARGE = new Order("188");
  public static Order REPORT24DATA = new Order("198");
  public static Order REPORT20DATEDATA = new Order("199");
  public static Order CLEANALL = new Order("200");
  public static Order WATERWARNING = new Order("201");
  public static Order WATERSITEWARNING = new Order("202");
  public static Order WATERLEVEL = new Order("203");

  public static Order OKORNO_2_0 = new Order("0");
  public static Order RESET_2_0 = new Order("1");
  public static Order PATHTEST_2_0 = new Order("2");
  public static Order SETCLOCK_2_0 = new Order("3");
  public static Order READCLOCK_2_0 = new Order("4");
  public static Order SETMETERNO_2_0 = new Order("5");
  public static Order READMETERNO_2_0 = new Order("6");
  public static Order SETMETERMODEL_2_0 = new Order("7");
  public static Order READMETERMODEL_2_0 = new Order("8");
  public static Order SETREPORTTIME_2_0 = new Order("9");
  public static Order READREPORTTIME_2_0 = new Order("10");
  public static Order SETINITVALUE_2_0 = new Order("11");
  public static Order READVALUE_2_0 = new Order("12");
  public static Order SETPRICE_2_0 = new Order("13");
  public static Order READPRICE_2_0 = new Order("14");
  public static Order SETCHARGE_2_0 = new Order("15");
  public static Order READCHARGE_2_0 = new Order("16");
  public static Order READAMOUNTCHARGE_2_0 = new Order("17");
  public static Order SETWATERREMAINWARNING_2_0 = new Order("18");
  public static Order READWATERREMAINWARNING_2_0 = new Order("19");
  public static Order SETWATERLEVELOPTION_2_0 = new Order("20");
  public static Order READWATERLEVELOPTION_2_0 = new Order("21");
  public static Order READWATERRELEVEL_2_0 = new Order("22");
  public static Order SETGPRSID_2_0 = new Order("23");
  public static Order READGPRSID_2_0 = new Order("24");
  public static Order READ30DATA_2_0 = new Order("25");
  public static Order READDATA_2_0 = new Order("26");
  public static Order SETCLEAN_2_0 = new Order("27");
  public static Order SETSTATUSOPTION_2_0 = new Order("28");
  public static Order READSTATUSOPTION_2_0 = new Order("29");
  public static Order ANSWERAUTOREPORT_2_0 = new Order("30");
  public static Order READSTATUS_2_0 = new Order("31");
  public static Order SETPUMPOPTION_2_0 = new Order("32");
  public static Order READPUMPOPTION_2_0 = new Order("33");
  public static Order READPUMPDATA_2_0 = new Order("34");
  public static Order SETOPENPUMP_2_0 = new Order("48");
  public static Order SETCLOSEPUMP_2_0 = new Order("49");
  public static Order SETENABLEICCARD_2_0 = new Order("50");
  public static Order SETDISABLEICCARD_2_0 = new Order("51");
  public static Order AUTOREPROT_2_0 = new Order("64");

  public static Order SETGPRSOPTION = new Order("9990");
  public static Order READGPRSOPTION = new Order("9991");
  public static Order READGPRSSTATUS = new Order("9992");
  public static Order CANCELGPRS = new Order("9993");

  public static Order COMMON = new Order("9999");

  public static Order GSM = new Order("8888");

  public static Order ONLINE = new Order("10000");

  public static Order NOTORDER = new Order("20000");

  public Order(String orderType)
  {
    this.orderType = orderType;
    this.isMulRresult = false;
  }

  public Order(String orderType, boolean isMulRresult)
  {
    this.orderType = orderType;
    this.isMulRresult = isMulRresult;
  }

  public void setIsMulRresult(boolean isMulRresult)
  {
    this.isMulRresult = isMulRresult;
  }

  public boolean IsMulRresult()
  {
    return this.isMulRresult;
  }

  public boolean equals(Order order)
  {
    return this.orderType == order.orderType;
  }

  public String toString()
  {
    return this.orderType;
  }

  public int toInt()
  {
    return Integer.parseInt(this.orderType);
  }
}